/*
 * Copyright 2008 Stefan Henze
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/*****************************************************
	Allgemein
*****************************************************/

body {
	margin: 0;
	font-family: Helvetica;
	background: #FFFFFF;
	color: #000000;
	overflow: hidden;
	-webkit-text-size-adjust: none;
}

a img {
	border: none;
}

/*** Anzeigen oder Verstecken einzelner Seiten ***/
.container > div,
.container > form,
.container > ul,
.container > #swipecontainer > div,
.container > #swipecontainer > form,
.container > #swipecontainer > ul {
	display: none;
}
.container > div,
.container > ul,
.container > #swipecontainer > div,
.container > #swipecontainer > ul {
	display: none;
	position: absolute;
	left: 0;
	width: 100%;
	min-height: 418px;
	margin: 0;
	padding: 0;
	background-color: white;
}
.container > div,
.container > ul {
	top: 41px;
}
.container > #swipecontainer > div,
.container > #swipecontainer > ul {
	top: 0px;
}

.container > *[selected="true"],
.container > #swipecontainer > *[selected="true"] {
	display: block;
}


/*** swiping ***/

/*.swiping.panel, .swiping .panel
{
	background-image: none;
}

.swiping img {
	visibility: hidden;
}*/

#swipecontainer {
	overflow: hidden;
}

#swipecontainer.swiping {
	display: block;
	z-index: 300;
	border-right: 1px solid #E0E0E0;
}

/*****************************************************
	Toolbar
*****************************************************/

.toolbar > h1 {
	box-sizing: border-box;
	margin: 0;
	padding: 10px;
	line-height: 20px;
	font-size: 20px;
	font-weight: bold;
	text-align: center;
	text-shadow: rgba(0, 0, 0, 0.6) 0px -1px 0;
	text-overflow: ellipsis;
	color: #FFFFFF;
	background: url(i/iPhoneToolbar.png) #7388a5 repeat-x;
	border-bottom: 1px solid #3f4e63;
	min-height: 20px;
}

/*** Button aus Seite wird nach oben verschoben ***/
.button {
	position: absolute;
	top: -34px; /* 7-41*/
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
	border-width: 0 6px 0 6px;
	padding: 0;
	height: 28px;
	line-height: 28px;
	font-size: 12px;
	font-weight: bold;
	color: #FFFFFF;
	text-shadow: rgba(0, 0, 0, 0.6) 0px -1px 0;
	text-decoration: none;
	background: none;
	-webkit-border-image: url(i/toolButton2.png) 0 7 0 7;
}
.leftbutton {
	left: 6px;
}
.rightbutton {
	right: 6px;
}

#homeButton {
	display: none;
	top: 6px;
	left: 6px;
	right: auto;
	-webkit-border-image: url(i/backButton2.png) 0 7 0 13;
	text-shadow: rgba(0, 0, 0, 0.6) 0px -1px 0;
	border-width: 0 6px 0 10px;
}


/*****************************************************
	Linkliste (ul>li)
*****************************************************/

ul.linklist > li {
	margin: 0;
	border-bottom: 1px solid #E0E0E0;
	padding: 0;
	font-size: 20px;
	font-weight: bold;
	list-style: none;
}

ul.linklist > li > a {
	display: block;
	padding: 8px 32px 8px 8px;
	text-decoration: none;
	color: inherit;
	background: url(i/iPhoneArrow2.png) no-repeat right center;
	clear: none;
	/*-webkit-tap-highlight-color: #194fdb;*/
	/*-webkit-tap-highlight-color: rgba(0,0,0,0);*/
}

ul.linklist > li > a:active, a[selected="true"] {
	background-color: #194fdb !important;
	background-image: url(i/listArrowSel.png), url(i/selection.png) !important;
	background-repeat: no-repeat, repeat-x !important;
	background-position: right center, left top !important;
	color: #FFFFFF !important;
}

ul.linklist.large > li > a {
	min-height: 44px;
}
ul.linklist.large > li > a > img {
	display: inline;
	width: 40px;
	height: 40px;
	padding: 3px 10px 0 0;
	float: left;
}
ul.linklist.large > li > a > span.label {
	display: none;
} 
ul.linklist.large > li > a > span {
	display: inline;
}
ul.linklist.large > li > a > span > .title {
	display: block;
	padding-top: 7px;
	padding-bottom: 7px;
}
ul.linklist.large > li > a.subtitle > span > .title {
	padding: 0px;
}
ul.linklist.large > li > a.subtitle > span > .subtitle {
	display: block;
	font-size: 14px;
}
ul.linklist.large > li > a > span > .subtitle {
	display: none;
}

ul.linklist.small > li > a > img {
	display: inline;
	width: 25px;
	height: 25px;
	padding: 3px 10px 0 0;
	float: left;
}
ul.linklist.small > li > a > span {
	display: inline;
}
ul.linklist.small > li > a > span > .title {
	display: inline;
}
ul.linklist.small > li > a.subtitle > span > .subtitle {
	display: inline;
	padding-left: 10px;
	font-size: 14px;
}
ul.linklist.small > li > a > span > .subtitle {
	display: none;
}


/*****************************************************
	Slider (links-rechts)
*****************************************************/

.slider>table {
	margin: 0;
	border-bottom: 1px solid #3f4e63;
	padding: 0;
	background-color: white;
	font-size: 20px;
	font-weight: normal;
	height: 41px;
	table-layout: fixed;
	width: 100%;
	border-spacing: 0;
}

.slider>table>tbody>tr>td, .slider>table>tbody>tr, .slider>table>tbody {
	padding: 0;
	margin: 0;
}

.slider>table>tbody>tr>td.left, .slider>table>tbody>tr>td.right {
	width: 40px;
	position: relative;
}

.slider>table>tbody>tr>td>a {
	position: absolute;
	top: 0px;
	height: 40px;
	line-height: 40px;
	width: 40px;
}
.slider>table>tbody>tr>td.left>a {
	background-image: url('i/rbleft.png');
}
.slider>table>tbody>tr>td.right>a {
	background-image: url('i/rbright.png');
}
.slider>table.first>tbody>tr>td.left>a {
	background-image: url('i/rbleft_g.png');
}
.slider>table.last>tbody>tr>td.right>a {
	background-image: url('i/rbright_g.png');
}

.slider>table>tbody>tr>td.text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.slideitem>* {
	min-height: 377px;
}

.slider>slideitem[selected="true"] {
	display: block;
}

/*****************************************************
	Arranger
*****************************************************/

.arranger {
	background-color: white;
}
.aec {
	position: relative;
}
.ae {
	position: relative;
	text-align: left;
	border-bottom: 1px solid #E0E0E0;
	height: 40px;
}
.ae.moving {
	z-index: 400;
	background-color: white;
}
.ae > span {
	position: absolute;
	box-sizing: border-box;
	top: 0;
	left: 0;
	right: 0;
	text-align: left;
	padding: 8px 83px 8px 45px;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 18px;
	font-weight: bold;
	white-space: nowrap;
}
.ae > span > img {
	display: inline;
	width: 25px;
	height: 25px;
	padding: 1px 10px 0 0;
	float: left;
}
.ae > a {
	position: absolute;
	top: 0px;
	width: 40px;
	height: 40px;
	line-height: 40px;
}
.ae > a.hide {
	background-image: url('i/eyeon.gif');
	left: 0px;
}
.ae > a.show {
	background-image: url('i/eyeoff.gif');
	left: 0px;
}
.ae > a.del {
	background-image: url('i/del.gif');
	left: 0px;
}
.delc .ae > a.del {
	background-image: url('i/delask.gif');
}
.ae > a.up {
	background-image: url('i/rbup.gif');
	right: 40px;
}
.ae > a.down {
	background-image: url('i/rbdown.gif');
	right: 0px;
}
.ae > a.delconfirm {
	width: auto;
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
	border-width: 0 8px 0 8px;
	margin: 7px 8px 0 0;
	height: 28px;
	line-height: 28px;
	font-size: 12px;
	font-weight: bold;
	color: #FFFFFF;
	text-shadow: rgba(0, 0, 0, 0.6) 0px -1px 0;
	text-decoration: none;
	background: none;
	-webkit-border-image: url(i/redButton.png) 0 8 0 8;
	right: 0px;
	visibility: hidden;
}
.aec.first > .ae > a.up,
.aec.last > .ae > a.down {
	visibility: hidden;
}
a.show + a.up, a.show + a.up + a.down,
.delmode a.up, .delmode a.down {
	visibility: hidden;
}
.delc a.delconfirm {
	visibility: visible;
}

/*****************************************************
	Dialog
*****************************************************/

.dialog .button {
	top: 7px;
}

.dialog {
	position: absolute;
	top: 0;
	width: 100%;
	min-height: 468px;
	z-index: 400;
	background: rgba(0, 0, 0, 0.8);
	padding: 0;
	/*text-align: right;*/
}
.dialog .toolbarhint {
	background-color: #bec5cf;
	font-size: 14px;
	text-align: center;
	background-image: url(i/iPhoneToolbarLarge.png);
	height: 54px;
	padding-top: 2px;
	color: #2a3e5a;
	text-shadow: rgba(255, 255, 255, 0.6) 0px 1px 0;
}
.dialog .toolbar {
	position: absolute;
	top: 16px;
	width: 100%;
}
.dialog .toolbar h1 {
	background: none;
}

.dialog > .content {
	background: #dddddd url(i/pinstripes.png);
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	padding: 10px;
}

.dialog > .content > h1 {
	font-family: Helvetica;
	font-size: 17px;
	color: rgb(76,86,108);
	margin: 0;
	padding: 10px 10px 8px 10px;
	font-weight: bold;
}

fieldset {
	/*margin: 1px 10px 10px 10px;*/
	padding: 0;
	background-color: white;
	/*width: 100%;*/
	margin: 0;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	border: 1px solid rgb(217,217,217); 
}

fieldset > label {
	position: absolute;
	margin: 0;
	padding: 9px 0 0 6px;
	font-size: 16px;
	color: #000000;
	font-weight: bold;
	border: none !important;
}

fieldset > input {
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 9px 6px 9px 60px;
	font-size: 16px;
	font-weight: normal;
	border: none;
}

/** Radio-Table **/

fieldset > table.radio {
	background-color: white;
	table-layout: auto;
	width: 100%;
	border-spacing: 0;
}
fieldset > table.radio td {
	background: #eee url(i/radioBack.png) repeat-x;
	border-left: 1px solid rgb(217,217,217);
	text-align: center;
	padding: 8px 5px;
}
fieldset > table.radio td:first-child {
	border-left: none;
}
fieldset > table.radio td.selected {
	background: #4d8ded url(i/radioBackSelected.png) repeat-x;
	color: white;
}

/** Link-Button **/
fieldset > a.formbutton {
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	display: block;
	width: 100%;
	text-align: center;
	text-decoration: none;
	color: black;
	background-color: white;
	padding: 8px 5px;
	font-weight: bold;
}

fieldset > * {
	border-bottom: 1px solid rgb(217,217,217) !important;
}
fieldset > *.last {
	border-bottom: none !important;
	-webkit-border-bottom-left-radius: 8px;
	-webkit-border-bottom-right-radius: 8px;
	-moz-border-radius-bottomright: 8px;
	-moz-border-radius-bottomleft: 8px;
}
fieldset > *.first {
	-webkit-border-top-left-radius: 8px;
	-webkit-border-top-right-radius: 8px;
	-moz-border-radius-topright: 8px;
	-moz-border-radius-topleft: 8px;
}


/*****************************************************
	Rounded Rectangle (panel)
*****************************************************/

div.panel, #swipecontainer>div.panel {
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	padding: 1px 10px 10px 10px;
	background: #dddddd url(i/pinstripes.png);
}


.panel>h1 
{
	font-family: Helvetica;
	font-size: 17px;
	color: rgb(76,86,108);
	margin-left: 10px;
	font-weight: bold;
}	
.panel>ul	
{
	padding: 0px;
	margin: 0px 0px;
	background-color: white;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	border: 1px solid rgb(217,217,217); 
}
.panel>ul>li
{
	line-height: 17px;
	list-style-type: none;
	color:black;
	border-bottom: 1px rgb(217,217,217) solid;
	padding: 10px 10px 12px 10px;
}
.panel>ul>li.last
{
	border-bottom: none;
}
.panel>ul>li.complex
{
	padding: 0;
}



/************************************************************************************************/
/* playground starts here */

.scrolldown, .scrollup {
	display: none;
}

.showiphoneycontrols .scrolldown, .showiphoneycontrols .scrollup {
	position: fixed;
	display: block;
	width: 8px;
	height: 8px;
	bottom: 0px;
	z-index: 1000;
}
.showiphoneycontrols .scrolldown {
	left: 8px;
	background-color: #ddd;
}
.showiphoneycontrols .scrollup {
	left: 0px;
	background-color: #fff;
}





